/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package BLO;

import DAO.Connect;
import DAO.ResultsModel;
import DAO.TrongTaiDAO;
import DTO.TRONGTAI;
import DTO.NGUOI;
import java.sql.Connection;
import java.sql.ResultSet;

/**
 *
 * @author LUCKYSTARS
 */
public class TrongtaiBLO {
    TrongTaiDAO ttDAO = new TrongTaiDAO();
    
        Connect con= new Connect();
     Connection cont;
     public TrongtaiBLO()
     {
         cont=con.Connect("sa","123456"); 
     }
    public ResultSet Getdata()
    {
        return ttDAO.Getdata();
    }
     public String GetMaFTenTrongTai(NGUOI n)
     {
         return  ttDAO.GetMaFTenTrongTai(n);
     }
     
     public ResultsModel Getdata1()
     {
         return ttDAO.Getdata1();
     }
     
     public void Insert(TRONGTAI tt)
     {
         ttDAO.Insert(tt);
     }
     
     public void Update(TRONGTAI tt)
     {
         ttDAO.Update(tt);
     }
     
     public void Delete(String MaTT)
     {
         ttDAO.Delete(MaTT);
     }
     
     public String LayMaCuoi()
     {
         return ttDAO.LayMaCuoi();
     }
}
